package com.church.action;

import java.util.Date;
import java.util.List;

import com.church.db.User;
import com.church.services.UserServices;
import com.opensymphony.xwork2.ActionSupport;

public class GetUserList extends ActionSupport {
	private UserServices userServices;
	private List<User> userList;
	public UserServices getUserServices() {
		return userServices;
	}
	public void setUserServices(UserServices userServices) {
		this.userServices = userServices;
	}
	public List<User> getUserList() {
		return userList;
	}
	public void setUserList(List<User> userList) {
		this.userList = userList;
	}
	public String execute() {
		userList = userServices.getUserList();
		return "success";
	}

}
